unit UPesquisaItemNotaFiscal;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, Grids, DBGrids, StdCtrls, Buttons, ExtCtrls, DBCtrls;

type
  TFPesquisaItemNotaFiscal = class(TForm)
    DBGItens: TDBGrid;
    BtnFechar: TBitBtn;
    Label1: TLabel;
    procedure BtnFecharClick(Sender: TObject);
    procedure FormShow(Sender: TObject);
    procedure DBGItensDblClick(Sender: TObject);
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FPesquisaItemNotaFiscal: TFPesquisaItemNotaFiscal;

implementation

uses VendaNotaFiscal;

{$R *.dfm}

procedure TFPesquisaItemNotaFiscal.BtnFecharClick(Sender: TObject);
begin
  close;
end;

procedure TFPesquisaItemNotaFiscal.FormShow(Sender: TObject);
begin

  //DBGItens.DataSource := FVendaNotaFiscal.DSItensNotaFiscal;

end;

procedure TFPesquisaItemNotaFiscal.DBGItensDblClick(Sender: TObject);
begin
  BtnFechar.Click;
end;

procedure TFPesquisaItemNotaFiscal.FormCreate(Sender: TObject);
begin

  Self.Constraints.MaxHeight := 345;
  Self.Constraints.MinHeight := 345;

  Self.Constraints.MaxWidth  := 691;
  Self.Constraints.MinWidth  := 691;

end;

end.
